/**
 * @description 通用函数
 */
/**
 * @description 同步睡眠
 * @param {number} time 时长，毫秒
 * @returns {Promise}
 */
export function sleep(time = 0) {
	return new Promise((resolve) => {
		setTimeout(resolve, time);
	});
}

export const delay = sleep;
